﻿using PcProject.Domain.IRepository;
using PcProject.Domain.Models.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PcProject.Application.Service.Logistic
{
    public class LogisticsService: ILogisticsService
    {
        /// <summary>
        /// 构造函数依赖注入
        /// </summary>
        private ILogisticsRepository _logisticsRepository;
        /// <summary>
        /// 函数依赖注入
        /// </summary>
        /// <param name="logisticsRepository"></param>
        public LogisticsService(ILogisticsRepository logisticsRepository)
        {
            _logisticsRepository = logisticsRepository;
        }


        /// <summary>
        /// 显示+分页+查询
        /// </summary>
        /// <param name="ordernumber">订单编号</param>
        /// <returns></returns>
        public List<Logistics> GetProductsAsync(string ordernumber)
        {
            return _logisticsRepository.GetProductsAsync(ordernumber);
        }

    }
}
